import FlowerEnemy from "./FlowerEnemy";

const {ccclass, property} = cc._decorator;

@ccclass
export default class Pipline extends cc.Component {

    @property(cc.Node)
    flowerEnemy = null;

    onBeginContact(contact,selfCollider,otherCollider){
        if(otherCollider.node.group == 'hero'){
            var flowerEnemy:FlowerEnemy = this.flowerEnemy.getComponent(FlowerEnemy);
            flowerEnemy.move();
        }
    }

    start () {

    }

}
